import { getAction, deleteAction, putAction, postAction, httpAction, downFile, downFilePost } from '@/api/manage'
const serviceName = '/jeecg-fz'
//移交
const fzTurnoverLogAdd = params => postAction(`${serviceName}/fzTurnoverLog/add`, params)
//查询区域下拉框
const rootList = params => getAction(`${serviceName}/fzTurnoverArea/list`,params)
//部门树
const getTreeList = () => getAction(`${serviceName}/fzTurnoverArea/getTreeList`)
//预警速报列表
const warningList = params => postAction(`${serviceName}/viewWarningDataDetail/list`, params)
//预警速报-详情信息查询
const warningDetail = params => postAction(`${serviceName}/viewWarningDataDetail/detail`, params)
//预警速报导入
const importExcel = params => postAction(`${serviceName}/viewWarningDataDetail/importWarningExcel`, params)
//导出下载模板
const exportWarningTemplate = params =>
  downFilePost(`${serviceName}/viewWarningDataDetail/exportWarningTemplate`, params)
//预警速报导出无效手机号列表
const exportPhoneXls = params => downFilePost(`${serviceName}/viewWarningDataDetail/exportPhoneXls`, params)
//预警速报导出
const exportXls = params => downFilePost(`${serviceName}/viewWarningDataDetail/exportXls`, params)
//关注-取消关注
const follow = params => postAction(`${serviceName}/follow/operation`, params)
//批量锁定数据
const lockData = params => postAction(`${serviceName}/viewWarningDataDetail/lockData`, params)
//确认接收数据
const confirmReceipt = params => postAction(`${serviceName}/viewWarningDataDetail/confirmReceipt`, params)
//批量屏蔽
const dissuadeShield = params => postAction(`${serviceName}/dissuadeV2/dissuadeShield`, params)
//短信劝阻
const dissuadeMsg = params => postAction(`${serviceName}/dissuadeV2/dissuadeMsg`, params)
//获取 电话劝阻内容接口
const getDissuadePhone = params => getAction(`${serviceName}/dissuadeV2/dissuadePhone/get`, params)
//单条-批量 电话劝阻
const dissuadePhone = params => postAction(`${serviceName}/dissuadeV2/dissuadePhone`, params)
//预警审批提交
const disposalSubmit = params => postAction(`${serviceName}/dissuadeV2/disposalSubmit`, params)
//批量指定数据
const lockDataForUser = params => postAction(`${serviceName}/viewWarningDataDetail/lockDataForUser`, params)
//批量位置更新
const batchLocationRefresh = params => postAction(`${serviceName}/fzVictimLatestInfo/batchLocationRefresh`, params)
//单个指派-批量指派
const batchAppoint = params => postAction(`${serviceName}/fzWarningDataBase/batchAppoint`, params)
//获取保存配置
const getQueryConfig = params => getAction(`${serviceName}/viewWarningDataDetail/getQueryConfig`, params)
//保存配置
const saveQueryConfig = params => postAction(`${serviceName}/viewWarningDataDetail/saveQueryConfig`, params)
//获取未劝阻数量(督办)
const getUndissuaseCount = params => getAction(`${serviceName}/viewWarningDataDetail/getUndissuaseCount`, params)
//接收提醒
const getNeedReceiverList = params => getAction(`${serviceName}/viewWarningDataDetail/getNeedReceiverList`, params)
//获取今日未电话预警
const getWarningSupervise = params => getAction(`${serviceName}/viewWarningDataDetail/getWarningSupervise`, params)
//接收数据提醒
const getMessagePush = params => getAction(`${serviceName}/viewWarningDataDetail/getMessagePush`, params)
//获取涉诈网站截图
const getWebsiteScreenshotBy = params =>
  getAction(`${serviceName}/viewWarningDataDetail/getWebsiteScreenshotBy`, params)
//预警屏蔽列表
const warningScreenPage = params => getAction(`${serviceName}/fzVictimBase/warningScreenPage`, params)
//预警地图
const listMap = params => postAction(`${serviceName}/viewWarningDataDetail/listMap`, params)
//预警速报历史短信列表
const listHistorySms = params => getAction(`${serviceName}/viewWarningDataDetail/listHistorySms`, params)
//劝阻历史短信导出
const exportHistorySmsXls = params => downFilePost(`${serviceName}/viewWarningDataDetail/exportHistorySmsXls`, params)
//查询预警数据新增疑似受害人员信息
const getWarningNum = params => getAction(`${serviceName}/fzWarningMessagePush/getWarningNum`, params)
//站内消息通知
const getQueryPostionPloyConfig = params => getAction(`${serviceName}/earlyWarnPloyConfig/queryPostionPloyConfig`, params)

//移交数据列表查询
const fzTurnoverLog = params => getAction(`${serviceName}/fzTurnoverLog/list`, params)
//移交数据列表详情
const queryById = params => getAction(`${serviceName}/fzTurnoverLog/queryById`, params)
//预警速报查询移交详情
const queryByWaringBaseId = params => getAction(`${serviceName}/fzTurnoverLog/queryByWaringBaseId`, params)



export {
  queryByWaringBaseId,
  fzTurnoverLog,
  queryById,
  getTreeList,
  fzTurnoverLogAdd,
  rootList,
  warningList,
  warningDetail,
  importExcel,
  exportWarningTemplate,
  exportPhoneXls,
  exportXls,
  follow,
  lockData,
  dissuadePhone,
  disposalSubmit,
  dissuadeMsg,
  getDissuadePhone,
  dissuadeShield,
  confirmReceipt,
  lockDataForUser,
  batchLocationRefresh,
  batchAppoint,
  getQueryConfig,
  saveQueryConfig,
  getUndissuaseCount,
  getNeedReceiverList,
  getWarningSupervise,
  getMessagePush,
  getWebsiteScreenshotBy,
  warningScreenPage,
  listMap,
  listHistorySms,
  exportHistorySmsXls,
  getWarningNum,
  getQueryPostionPloyConfig
}
